var city = document.querySelector("#header .up .city");
var headerDinwei1= document.querySelector("#dinwei .headerDinwei1");
var citySpan= document.querySelector("#header .up .city p span");
var dinwei = document.getElementById("dinwei")
city.onmouseover = function(){
	headerDinwei1.style.display = "block";
	city.style.backgroundColor = "#fff";
	city.style.borderLeft = "1px solid #ccc";
	city.style.borderRight = "1px solid #ccc";
}
city.onmouseout = function(){
	headerDinwei1.style.display = "none";
	//city.style.backgroundColor = "#F1F1F1";
	//city.style.borderLeft = "1px solid #f1f1f1";
	//city.style.borderRight = "1px solid #f1f1f1";
}
headerDinwei1.onmouseover = function(){
	//headerDinwei1.style.display = "block";
	//city.style.backgroundColor = "#fff";
	//city.style.borderLeft = "1px solid #ccc";
	//city.style.borderRight = "1px solid #ccc";
}
headerDinwei1.onmouseout = function(){
	//headerDinwei1.style.display = "none";
	//city.style.backgroundColor = "#F1F1F1";
	//city.style.borderLeft = "1px solid #f1f1f1";
	//city.style.borderRight = "1px solid #f1f1f1";
}

/*var headerDinwei1 = document.getElementsByClassName("headerDinwei1")[0];
var headerDinwei1Lis = headerDinwei1.getElementsByTagName("li");
for(var i=0;i<headerDinwei1Lis.length;i++){
	headerDinwei1Lis[i].onclick = function(){
		citySpan.innerHTML = this.innerHTML;
		for(var j=0;j<headerDinwei1Lis.length;j++){
			headerDinwei1Lis[j].style.backgroundColor = "#fff";
			headerDinwei1Lis[j].style.color = "#3e3e3e";
		}
		this.style.backgroundColor = "#C81623"
		this.style.color = "#fff";
	}
}
*/
